import 'package:flutter/material.dart';
import 'package:open_source_china/constants/constants.dart';

// size、color都是可选参数,使用时可不传,构建 iconfont 的 icon
Icon iconBuild(
        {int icondata,
        double size = 30.0,
        Color color = const Color(AppColors.APP_THEME)}) =>
    Icon(
      IconData(icondata, fontFamily: 'iconfont'),
      size: size,
      color: color,
    );
